x1,y1,x2,y2 = eval(input("请输入两个点："))
x3,y3,x4,y4 = eval(input("请再输入两个点："))

a = y1 - y2
b = -(x1 - x2)
e = (y1 - y2)*x1 - (x1-x2)*y1
c = y3 - y4
d = -(x3-x4)
f = (y3-y4)*x3 - (x3 - x4)*y3

t = a*d - b*c
if t==0:
    print("这两条线是平行线哦。")
else:
    x = (e*d-b*f) / t
    y = (a*f-e*c) / t
    print("这两条线的交点坐标为：x=",x,",y=",y)